/*-----------------------------------------------------------------------------------
 *
 * 프로그램명	: ProductDAO.java
 * Version		: 1.0
 * 작성일 		: 2006-08-16
 * 작성자		:
 * 수정일 		:
 * 수정자		:
 * 설명		 	:
 * 기능		 	:
 *
 * Copyright (c) 2000 by H&H  All Rights Reserved.
 *
-------------------------------------------------------------------------------------*/
package com.qbooks.app;

import java.io.*;

import java.util.*;
import java.sql.*;

import com.zll.framework.db.DBManager;
import com.zll.framework.model.HashBox;
import com.zll.framework.model.HashList;



public class AppDAO
{
	public HashList selectCategoryList(HashMap infos) throws Exception
	{
        return DBManager.executeQuery("/app.xml", "select_category_list", infos);
	}

	public HashList selectMember(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_member", infos);
	}

	public HashList selectBookList(HashMap infos) throws Exception
	{
        return DBManager.executeQuery("/app.xml", "select_book_list", infos);
	}

	public HashList selectBook(HashMap infos) throws Exception
	{
        return DBManager.executeQuery("/app.xml", "select_book", infos);
	}
	
	public HashList selectBookReviewList(HashMap infos) throws Exception
	{
        return DBManager.executeQuery("/app.xml", "select_book_review_list", infos);
	}
	
	public void updateBookHitCount(HashMap infos) throws Exception
	{
		DBManager.executeUpdate("/app.xml", "update_book_hit_count", infos);
	}


	public HashList selectMemberBook(HashMap infos) throws Exception
	{
        return DBManager.executeQuery("/app.xml", "select_member_book", infos);
	}

	public void insertBookDownload(HashMap infos) throws Exception
	{
		DBManager.executeUpdate("/app.xml", "insert_book_download", infos);
	}

	public HashList selectMemberBookList(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_member_book_list", infos);
	}
	public HashList selectAppVersion(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_app_version", infos);
	}

	public HashList selectMacList(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_mac_list", infos);
	}

	public void insertMemberMac(HashMap infos) throws Exception
	{
		DBManager.executeUpdate("/app.xml", "insert_member_mac", infos);
	}


	public HashList selectBoardList(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_board_list", infos);
	}

	public HashList selectBoardContent(HashMap infos) throws Exception
	{
		return DBManager.executeQuery("/app.xml", "select_board_content", infos);
	}
}
